package demo2;

public class Test {
    public static void func(Father father){
        father.eat();
    }
    public static void main(String[] args) {
        //Father father = new Father();抽象类不能实体对象
        Son son = new Son("小宝");
        func(son);


    }
}
